Skip to content

Conversation

venom1204
Copy link
Contributor

closes #2611

This PR fixes the long-standing bug in week() (#2611) by defining weeks sequentially: days 1–7 are week 1, days 8–14 week 2, etc.

hi @MichaelChirico @tdhock can you please have a review when you got time .
thanks.

Copy link

codecov bot commented Aug 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.10%. Comparing base (08ea530) to head (6c570ce).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7274   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files          84       84           
  Lines       16128    16128           
=======================================
  Hits        15983    15983           
  Misses        145      145           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

github-actions bot commented Aug 31, 2025

  • HEAD=issue____2611 stopped early for DT[,.SD] improved in #4501
  • HEAD=issue____2611 slower P<0.001 for memrecycle regression fixed in #5463
    Comparison Plot

Generated via commit 6c570ce

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 2 minutes and 43 seconds
Installing different package versions 41 seconds
Running and plotting the test cases 2 minutes and 39 seconds

Copy link
Member

@tdhock tdhock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tdhock tdhock changed the title Fix week() calculation to start week 1 at days 1–7 (resolves #2611) Fix week() calculation to start week 1 at days 1–7 Sep 2, 2025
@tdhock
Copy link
Member

tdhock commented Sep 25, 2025

@venom1204 please resolve conflicts

@MichaelChirico can you please review because you posted the issue this fixes?

@venom1204
Copy link
Contributor Author

@tdhock done

@venom1204 venom1204 requested a review from tdhock September 26, 2025 11:13
@jangorecki
Copy link
Member

jangorecki commented Oct 3, 2025

Doesn't LGTM because it is a breaking change, not even documented. Maybe we can detect breaking behavior and raise warning that can be suppressed with a temporary global option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug in week means first week only has 6 days?
3 participants